
#ifndef InputH
#define InputH


#include "Constants.h"
#include "Camera.h"



class InputManager
{
	Uint8 mouse, *teclado;
	int mouseX, mouseY;
	Uint8 keyDown[N_KEYS], keyUp[N_KEYS];
	Uint8 mouseDown[N_MOUSE_BUTTONS], mouseUp[N_MOUSE_BUTTONS];
	bool quitGame;
	static InputManager *instance;
	SDL_Event event;

	InputManager();
public:
	static InputManager* getInstance();

	bool Update();
	bool isKeyDown(int);
	bool isKeyUp(int);
	bool isKeyPressed(int);
	bool isMouseDown(int);
	bool isMouseUp(int);
	bool isMousePressed(Uint8);
	int mousePosX();
	int mousePosY();
	bool isMouseInside(SDL_Rect);
	bool QuitGame();
	Uint8 returnEventType();
};



#endif

